﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Admin.aspx.cs" Inherits="Admin" Title="Untitled Page" EnableEventValidation="false" %>

<%@ MasterType VirtualPath="~/MasterPage.master" %>
<%@ Register Namespace="CustomControlsNS" TagPrefix="cc2" %>
<%@ Register Namespace="AjaxControlToolkitCustom" TagPrefix="AJAXCC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderContent" runat="Server">
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <dl>
                <dt>
                    <% =Resources.DatabaseStrings.Log_Informations %>:</dt>
                <dd>
                    <table style="table-layout: fixed; width: 98%">
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <% =Resources.DatabaseStrings.Log_Date %>:
                                            <asp:TextBox ID="txtDate" runat="server" Width="70px" />
                                            <asp:Image runat="Server" ID="ImageCalendar2" ImageUrl="~/Images/Calendar.gif" AlternateText="Click to show calendar"
                                                UseSubmitBehavior="false" Style="cursor: pointer" />
                                            <ajaxToolKit:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtDate"
                                                Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                                OnInvalidCssClass="MaskedEditError" MaskType="Date" ErrorTooltipEnabled="false" />
                                            <ajaxToolKit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDate"
                                                PopupButtonID="ImageCalendar2" />
                                            &nbsp;
                                            <% =Resources.DatabaseStrings.Log_Type %>:
                                            <asp:DropDownList ID="ddlLogNameSufix" runat="server" />
                                            &nbsp;&nbsp;&nbsp;
                                        </td>
                                        <td>
                                            <asp:UpdatePanel ID="upViewLog" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <table>
                                                        <tr>
                                                            <td width="120px">
                                                                <cc2:CustomButton ID="btnViewLog" runat="server" Text="<%$ Resources:DatabaseStrings, Log_Read %>"
                                                                    Title="<%$ Resources:DatabaseStrings, Log_Read %>" OnServerClick="btnViewLog_Click"
                                                                    AccessKey="2" />
                                                            </td>
                                                            <td>
                                                                <% =Resources.DatabaseStrings.FileSize %>:
                                                                <asp:Label ID="lblFileSize" runat="server" Text="-" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td>
                                            <asp:UpdatePanel ID="upKillExcel" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <cc2:CustomButton ID="btnKillExcel" runat="server" Text="<%$ Resources:DatabaseStrings, KillExcel %>"
                                                        Title="<%$ Resources:DatabaseStrings, KillExcel %>" OnServerClick="btnKillExcel_Click"
                                                        AccessKey="4" />
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:UpdatePanel ID="upListLog" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <cc2:CustomButton ID="btnListLog" runat="server" Text="<%$ Resources:DatabaseStrings, Log_List %>"
                                                                    Title="<%$ Resources:DatabaseStrings, Log_Read %>" OnServerClick="btnListLog_Click"
                                                                    AccessKey="1" />
                                                            </td>
                                                            <td>
                                                                &nbsp;&nbsp;
                                                                <asp:DropDownList ID="ddlTop" runat="server">
                                                                    <asp:ListItem Text="<%$ Resources:DatabaseStrings, Top_All %>" Value=""></asp:ListItem>
                                                                    <asp:ListItem Selected="True" Text="<%$ Resources:DatabaseStrings, Top_10 %>" Value="10"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:DatabaseStrings, Top_100 %>" Value="100"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td>
                                            <asp:UpdatePanel ID="upGetServerTime" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <table>
                                                        <tr>
                                                            <td width="120px">
                                                                <cc2:CustomButton ID="btnGetServerTime" runat="server" Text="<%$ Resources:DatabaseStrings, Log_GetServerTime %>"
                                                                    Title="<%$ Resources:DatabaseStrings, Log_GetServerTime %>" OnServerClick="btnGetServerTime_Click"
                                                                    AccessKey="3" />
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblServerTime" runat="server" Text="-" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td>
                                            <asp:UpdatePanel ID="upKillWord" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <cc2:CustomButton ID="btnKillWord" runat="server" Text="<%$ Resources:DatabaseStrings, KillWord %>"
                                                        Title="<%$ Resources:DatabaseStrings, KillWord %>" OnServerClick="btnKillWord_Click"
                                                        AccessKey="5" />
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100%">
                                <% =Resources.DatabaseStrings.Log %>:
                                <br />
                                <asp:UpdatePanel ID="upLog" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <div style="border: 1px solid black; width: 99%; height: 350px; overflow: auto">
                                            <asp:Label ID="lblLog" runat="server" EnableViewState="false" />
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                    </table>
                </dd>
            </dl>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script type="text/javascript">
        function DoSelectFile(strDate, strType) {
            $get('<% =txtDate.ClientID %>').value = strDate;
            $get('<% =ddlLogNameSufix.ClientID %>').selectedIndex = strType;
            $get('<% =btnViewLog.ClientID %>_btn').click();
        }
    </script>
</asp:Content>
